package com.ruoyi.mall.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 mall_order_master
 * 
 * @author banana_slices
 * @date 2024-12-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_order_master")
public class MallOrderMaster extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 订单号 */
    @TableId(type = IdType.AUTO)
    private Long orderId;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 职员id */
    @Excel(name = "职员id")
    private Long employeeId;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private String orderSum;

    /** 发票编号 */
    @Excel(name = "发票编号")
    private Long invoiceNo;

    /** 出货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shipDate;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }
    public void setOrderSum(String orderSum) 
    {
        this.orderSum = orderSum;
    }

    public String getOrderSum() 
    {
        return orderSum;
    }
    public void setInvoiceNo(Long invoiceNo) 
    {
        this.invoiceNo = invoiceNo;
    }

    public Long getInvoiceNo() 
    {
        return invoiceNo;
    }
    public void setShipDate(Date shipDate) 
    {
        this.shipDate = shipDate;
    }

    public Date getShipDate() 
    {
        return shipDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("customerId", getCustomerId())
            .append("employeeId", getEmployeeId())
            .append("orderSum", getOrderSum())
            .append("invoiceNo", getInvoiceNo())
            .append("shipDate", getShipDate())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
